package com.example.unveil_the_leader.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.unveil_the_leader.common.Result;
import com.example.unveil_the_leader.entity.Applys;
import com.example.unveil_the_leader.service.ApplysService;
import com.example.unveil_the_leader.mapper.ApplysMapper;
import com.example.unveil_the_leader.utils.GetTimeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author XCT
* @description 针对表【applys】的数据库操作Service实现
* @createDate 2024-01-26 15:58:16
*/
@Service
public class ApplysServiceImpl extends ServiceImpl<ApplysMapper, Applys>
    implements ApplysService{

    @Autowired
    private ApplysMapper applysMapper;

    @Override
    public Result sendMessage(int sid, int gid, String message) {
        applysMapper.sendMsg(sid,gid,message, GetTimeUtil.getTime());
        return null;
    }

    @Override
    public Result getMessage(int gid) {
        return null;
    }

    @Override
    public Result readMessage(int uid) {
        return null;
    }

    @Override
    public Result deleteOne(int uid, int id) {
        return null;
    }

    @Override
    public Result deleteAll(int uid) {
        return null;
    }
}




